package com.jiyun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiyun.entity.Order;
import com.jiyun.entity.Reviews;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (Order)表数据库访问层
 *
 * @author LYT
 * @since 2025-02-13 09:01:59
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    List<Order> findOrder(@Param("userId") Integer userId);

    List<Reviews> findTavern(@Param("tavernId") Integer tavernId);

    List<Order> findTavernNumber(@Param("tavernId") Integer tavernId);

    void updateOrder(@Param("tavernId")Integer tavernId,@Param("s") int s);
}

